const routes = [
  {
    path: '',
    name: '/',
    redirect: '/users'
  },
  {
    path: '/users',
    name: 'users',
    component: () => import('@/views/userView/userIndex.vue')
  },
  {
    path: '/roles',
    name: 'roles',
    component: () => import('@/views/rolesView/rolesIndex.vue')
  },
  {
    path: '/rights',
    name: 'rights',
    component: () => import('@/views/rolesView/rightIndex.vue')
  },
  {
    path: '/goods',
    name: 'goods',
    component: () => import('@/views/goodsView/goodsIndex.vue')
  },
  {
    path: '/params',
    name: 'params',
    component: () => import('@/views/goodsView/paramsIndex.vue')
  },
  {
    path: '/categories',
    name: 'categories',
    component: () => import('@/views/goodsView/categoriesIndex.vue')
  },
  {
    path: '/orders',
    name: 'orders',
    component: () => import('@/views/ordersView/ordersIndex.vue')
  },
  {
    path: '/reports',
    name: 'reports',
    component: () => import('@/views/reportsView/reportsIndex.vue')
  },
  {
    path: '/add',
    name: 'add',
    component: () => import('@/views/addgoods/addIndex.vue')
  }
]

export default routes
